/* 
    Document   : main
    Created on : Dec 14, 2013, 4:00:40 PM
    Author     : emm
    Description:
        Purpose of the stylesheet follows.
*/
/*some comment*/
body{
    min-width: 960px;
}
.main {
    width: 100%;
}
/*----------header---------*/
.header{
    background-color: #292929;
    margin: 3% 2% 0 2%; /*top right bottom left*/
    position: relative; /*not move, but his children can move inside him*/
    border-radius: 15px;
    padding: 1% 0 0 1%;
}
.logotype{
    float: left;
    width: 52%;
}
.logotype img{
    width: 90%;
}

.header input{
    width: 90%;
    height: 24px;
    margin: 2% 5% 5% 1%;
    padding: 0 0 0 1%;
}
.search{
    width: 45%;
    text-align: center;
    float: left;
}
.search label img{
    margin: -20px 0 0 0;
}
.clear{
    clear: both;
    height: 1px;
    float: none!important;
}
.leaf{
    position: absolute;
    right: -2.5%;
    top: 29%;
    width: 10%;
}

/*----------Top Banner------------*/

.topMenu{
    margin: 0% 2% 0 2%; /*top right bottom left*/
    padding: 0 0 0 1%;
    border-bottom: 1px solid black;
    width: 86%;
}
/*Navigation*/
.topMenu ul{
    float:left;
    width:100%;
    list-style:none;
    font-weight:bold;
    margin: 1% 0 0 -3%;
}
.topMenu ul .navigation{
    float:left;
    position:relative;
    display:block;
    list-style-type: none;
    text-align: center;
    width: 19%;

}
.topMenu .navigation{
    border-left: 1px solid black;
}
.topMenu .navigation:first-child{
    border-left: none;
    padding: 0 0 0 1px;
}
.topMenu ul li a{
    display:block;
    text-decoration:none;     
    float: left;
    margin: 0 auto;
    font-size: 100%;
    color: black;
    width: 100%;
}

.topMenu ul li a:hover{
    color:#fff;
    background:#DAD7D7;
    text-decoration:none;
}

/*--- Padding List ---*/
.topMenu ul ul{
    list-style:none;
    position:absolute;
    left:-9999px; /* Скрываем за экраном, когда не нужно (данный метод лучше, чем display:none;) */
    opacity:0; /* Устанавливаем начальное состояние прозрачности */
    -webkit-transition:0.25s linear opacity; /* В Webkit выпадающие пункты будут проявляться */
}
.topMenu ul ul li{
    padding-top:1px; /* Вводим отступ между li чтобы создать иллюзию разделенных пунктов меню */
    float:none;
    border: none;
}
.topMenu ul ul a{
    white-space:nowrap; /* Останавливаем перенос текста и создаем многострочный выпадающий пункт */
    display:block;
}
@media screen and (min-width:100px) and (max-width:900px){
    .topMenu ul li:hover .paddingList{
        margin: 10px 0 0 -24.5%;
    }
}
@media screen and (min-width:901px) and (max-width:1200px){
    .topMenu ul li:hover .paddingList{
        margin: 10px 0 0 -24.5%;
    }
}
@media screen and (min-width:1200px) and (max-width:1280px){
    .topMenu ul li:hover .paddingList{
        margin: 10px 0 0 -19.5%;
    }
}
@media screen and (min-width:1281px) and (max-width:1370px){
    .topMenu ul li:hover .paddingList{
        margin: 10px 0 0 -18%;
    }
}
@media screen and (min-width:1371px) and (max-width:1480px){
    .topMenu ul li:hover .paddingList{
        margin: 10px 0 0 -17.5%;
    }
}
@media screen and (min-width:1481px){
    .topMenu ul li:hover .paddingList{
        margin: 10px 0 0 -15%;
    }
}
.topMenu ul li:hover ul{ /* Выводим выпадающий пункт при наведении курсора */
    left:0; /* Приносим его обратно на экран, когда нужно */
    opacity:1; /* Делаем непрозрачным */
}
.topMenu ul li:hover a{ /* Устанавливаем стили для верхнего уровня, когда выводится выпадающий список */
    background:#DAD7D7;
    text-decoration:none;
}
.topMenu ul li:hover ul a{ /* Изменяем некоторые стили верхнего уровня при выводе выпадающего пункта */
    text-decoration:none;
    -webkit-transition:-webkit-transform 0.075s linear;
}
.topMenu ul li:hover ul li a:hover{ /* Устанавливаем стили для выпадающих пунктов, когда курсор наводится на конкретный пункт */
    background:#3D3D3D;
    background:rgba(61,61,61,0.75); /* Будет полупрозрачным */
    text-decoration:none;
    -moz-transform:scale(1.05);
    -webkit-transform:scale(1.05);
}


/*-------------Main body--------------*/
.mainPart{
    margin: 3% 2% 0 2%; /*top right bottom left*/ 
}

/*^^^^^left banner^^^^^^*/
.left{
    width:20%;
    float:left;  

}
/*signIn */
.signIn{
    width:100%;
    padding: 5px 5%;
    background: #CAE6F1;
    border-radius: 15px;
    position: relative;
    text-align: center;
    border: none;
}
.signIn input{
    width: 68%;
}
.social{
    width: 100%;
}
.socialLogo{
    margin: 5px 0 5px 0;    
    width: 14%;
    display: block;
    float:left;
    padding: 5px 0 5px 13.7%;
    border: none;
}
.socialLogoFirst .socialLogo{
    padding: 5px 0;
}

.signInButton{
    width: 100%;
    border: none;
}
.signInButton img{
    border: none;
}
/*signIn: for each resolution make another width for input*/
@media screen and (min-width:100px) and (max-width:1100px){
    .signIn input{
        width:90px;
    }
}
@media screen and (min-width:1101px) and (max-width:1200px){
    .signIn input{
        width:110px;
    }
}
@media screen and (min-width:1201px) and (max-width:1300px){
    .signIn input{
        width:130px;
    }
}
@media screen and (min-width:1301px) and (max-width:1409px){
    .signIn input{
        width:150px;
    }
}
@media screen and (min-width:1410px) and (max-width:1560px){
    .signIn input{
        width:170px;
    }
}
@media screen and (min-width:1561px){
    .signIn input{
        width:190px;
    }
}

/* Filter banner number one*/
.filtersOne{
    margin: 15% 0 0 0;
    width:100%;
    padding: 5px 5%;
    background: #A2D0E0;
    border-radius: 15px;
    position: relative;
    text-align: center;
}
.filtersOne li a{
    text-decoration: none;
    float: left;
    margin: 5px auto;
    font-size: 100%;
    color: black;
    border-bottom: 1px solid black;
    display: block;
    width: 100%;
    padding: 0 0 7px 0;
}
.filtersOne li{
    list-style-type: none;
    float: left;
    text-align: center;
    width: 100%;
}
.filtersOne ul li:last-child a{
    border-bottom: none;
    padding: 0 0 0 0;
}
@media screen and (min-width:100px) and (max-width:900px){
    .filtersOne ul{
        margin: 0 0 0 -19%;
    }
}
@media screen and (min-width:901px) and (max-width:1280px){
    .filtersOne ul{
        margin: 0 0 0 -18%;
    }
}
@media screen and (min-width:1281px) and (max-width:1370px){
    .filtersOne ul{
        margin: 0 0 0 -16%;
    }
}
@media screen and (min-width:1371px) and (max-width:1480px){
    .filtersOne ul{
        margin: 0 0 0 -14%;
    }
}
@media screen and (min-width:1481px){
    .filtersOne ul{
        margin: 0 0 0 -13%;
    }
}

/*subscription*/
.subscription{
    margin: 15% 0 0 0;
    width:100%;
    padding: 5px 5%;
    background: #7CA2AF;
    border-radius: 15px;
    position: relative;
    text-align: center;
}
.signUpButton{
    margin: 7px     0 0 0;
}
.subscription input{
    width: 170px;
}

/*^^^^^^^right column^^^^^^^*/
.right{
    float: left;
    width: 77%;
    margin: 0 0 0 3%;
}

.typeOfViewAndLibrary{
    width: 100%;
    position: relative;
}
/*Library Switcher*/
.librarySwitch{
    margin: 0% 2% 2% 2%; /*top right bottom left*/
    padding: 0 0 0 1%;
    width: 75%;
    position: absolute;
}
.librarySwitch ul{
    width: 75%;
    margin: 0 0 0 26%;
}
.librarySwitch li a{
    text-decoration: none;
    float: left;
    margin: 0 5% 0 5%;
    font-size: 100%;
    color: black;
    border-left: 1px solid black;
    display: block;
    width: 100%;
}
.librarySwitch li{
    list-style-type: none;
    float: left;
    text-align: center;
    width: 35%;
}
.librarySwitch ul li:first-child  a{
    border-left: none;
}
.librarySwitch ul li:last-child a{
    padding-left: 5%;
}
/*View Switcher*/
.viewSwitchFirstImg{
    margin: -0.65% 0 0 89%;
    width: 3%;
    display: block;
    float:left;
    border: none;
}
.viewSwitchImg{
    margin: -0.65% 0 0 1%;
    width: 3%;
    display: block;
    float:left;
    border: none;
}
@media screen and (min-width:100px) and (max-width:1084px){
    .viewSwitchFirstImg{
        margin: -0.22% 0 0 87%;
    }
    .viewSwitchImg{
        margin: -0.22% 0 0 1%;
    }
}
@media screen and (min-width:1085px) and (max-width:1360px){
    .viewSwitchFirstImg{
        margin: -0.65% 0 0 88%;
    }
    .viewSwitchImg{
        margin: -0.65% 0 0 1%;
    }
}
@media screen and (min-width:1361px){
    .viewSwitchFirstImg{
        margin: -0.6% 0 0 87%;
    }
    .viewSwitchImg{
        margin: -0.6% 0 0 1%;
    }
}

/*content*/
/*for grid*/
.grid div{
    width: 45%;
    margin: 1%;
    float: left;
}

.bigList div{
    width: 98%;
    margin: 1%;
}

.smallList div{
    width: 98%;
    margin: 1%;
    height: 160px;
}

#contentWrapper{
    width: 98%;
    margin: 2%;
    text-align: center;
}
.bookDisplay{
    display: block;
    width: 46%;
    height: 240px;
    position: relative;
    margin: 2% 4%;
    border: groove;
    border-bottom-width: 1px;
    border-color: rgb(240,240,240);   
}

.bookDisplay .leftBookDisplay {
    float: left;
    width: 150px;
    height: 100%;
    text-align: center;
}

.bookDisplay .leftBookDisplay .image{
    margin: 5px;
}
.bookDisplay .leftBookDisplay img{
    width: 130px;
}
.bookDisplay .leftBookDisplay .rating{
    width: 130px;
    height: 20px;
    margin: auto;
    float:left;
}
.bookDisplay .rightBookDisplay {
    height: 100%;
    float: left;
    position: relative;
    margin-left: 160px;
}
.bookDisplay .rightBookDisplay .title{
    position: absolute;
    height: 30px;
}
.bookDisplay .rightBookDisplay .descp{
    float:left;
    text-align: justify;
    margin: 30px 5px 30px 160px;
}
.bookDisplay .rightBookDisplay .isbn{
    position: absolute;
    height: 30px;
}
/*padding lists*/
.topMenu li ul{
    position:absolute;
    top:10px;
    display:none;
}
.topMenu li:hover ul{
    text-align: center;
    display:block;
}
.topMenu li ul li{
    border-left: none;
    position:relative;
    z-index:5;
    float:none;/*beautify inner li*/
}

/*-------------footer---------------*/
.footer{
    background-color: #C2BCBC;
    margin: 3% 2% 0 2%; /*top right bottom left*/
    position: relative; /*not move, but his children can move inside him*/
    border-radius: 15px;
    padding: 1% 0;
    text-align: center;
}

/*footer banner*/
.footerMenu{
    margin: 0% 2% 2% 2%; /*top right bottom left*/
    padding: 0 0 0 1%;
    width: 100%;
}
.footerMenu ul{
    width: 75%;
    margin: 0 0 0 26%;
}
.footerMenu li a{
    text-decoration: none;
    float: left;
    margin: 0 5% 0 5%;
    font-size: 100%;
    color: black;
    border-left: 1px solid black;
    display: block;
    width: 100%;
}
.footerMenu li{
    list-style-type: none;
    float: left;
    text-align: center;
    width: 15%;
}
.footerMenu ul li:first-child  a{
    border-left: none;
}
.footerMenu ul li:last-child {
    width: 18%;
}


/*----------hidden blocks---------*/
.over{
    height:100%;
    min-height:1100px;
    width:100%;
    background:rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    z-index: 3;
    display:none;
}
.over .inner{
    margin:5% auto;
    width:60%;
    height:50%;
    background:#fff;
}

/**/
.registrationBlock{
    height:100%;
    min-height:1100px;
    width:100%;
    background:rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    z-index: 3;
    display:none;
    text-align: center;
}
.registrationBlock .registrationForm{
    margin:15% auto;
    min-width: 400px;
    max-width: 401px;
    min-height: 300px;
    max-height: 301px;
    background:#fff;
}
.field {
    clear:both;
    text-align:right;
    margin: 10px 0 10px 0;
    line-height:25px;
}
.field label {
    float:left;
    padding-right:10px;
}
.allFields{
    float:left;
    margin: 20px 0 0 35px;
}
.registrationCompleteButton {
    float:left;
    width:100%;
    margin: 5px 0 0 0;
}

/**/
.addBooksBlock{
    height:100%;
    min-height:1100px;
    width:100%;
    background:rgba(0,0,0,0.5);
    position: absolute;
    top: 0;
    z-index: 3;
    display:none;
    text-align: center;
}
.addBooksBlock .addBooksForm{
    margin:15% auto;
    min-width: 400px;
    max-width: 401px;
    min-height: 300px;
    max-height: 301px;
    background:#fff;
}
.field {
    clear:both;
    text-align:right;
    margin: 10px 0 10px 0;
    line-height:25px;
}
.field label {
    float:left;
    padding-right:10px;
}
.allFields{
    float:left;
    margin: 20px 0 0 35px;
}
.addBooksCompleteButtons {
    float:left;
    width:100%;
    margin: 5px 0 0 0;
}


/*----------AJAX elements----------*/
.meetingUser{
    color:blue;
}
